<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>更改销售顾问</title>
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <link rel="stylesheet" type="text/css" href="view/iwocar5/css/main.css" />
	<link rel="stylesheet" type="text/css" href="view/iwocar5/css/sweet-alert.css">
</head>

<body>
<!--    <div class="header">
        <h5>完善资料<i class="arrow_l1"></i><em class="arrow_l2"></em></h5>
    </div>-->
    <div class="yaoyiyao">
        <h5 class="sel seldata">
            <span>客户姓名：</span>
			<input id='id' name='id' type="hidden" value="18"/>
            <div><input id='realname' name='realname'  disabled="disabled"  type="text" placeholder="" value="黄"/></div>
        </h5>
        <h5 class="sel seldata">
            <span>手机号：</span>
            <div><input id='phone' name='phone' type="text"  disabled="disabled"   value="18600177119"/></div>
        </h5>
        <!-- <h5 class="sel seldata">
            <span>性别：</span>
            <div>
                <select id="sex" name='sex' >
                  <option class="ques" selected = "selected">先生</option>
                </select>
            </div>
        </h5> 
        <h5 class="sel seldata">
            <span>职务：</span>
            <div>
            
                <select id='position' name='position'>
                  <option class="ques" selected = "selected">经理</option>
                </select>
            </div>
        </h5>
                 <h5 class="sel seldata">
            <span>行业：</span>
            <div>
                <select id='industry' name='industry'>
                  <option class="ques" selected = "selected"></option>
                </select>
            </div>
        </h5>  
        
        <h5 class="sel seldata">
            <span>意向车型：</span>
            <div>
                <select id='likecar' name='likecar'>
                  <option class="ques" selected = "selected">A1</option>
                </select>
            </div>
        </h5>    
        <h5 class="sel seldata">
            <span>购买意向：</span>
            <div>
                <select id='buy' name='buy'>
                  <option class="ques" selected = "selected">无意向</option>
                </select>
            </div>
        </h5>     
        <h5 class="sel seldata">
            <span>是否已购买：</span>
            <div>
                <select id='isbuyed' name='isbuyed'>
                  <option class="ques" selected = "selected">是</option>
                 
                </select>
            </div>
        </h5>    
        <h5 class="sel seldata spec">
            <span>已购车型：</span>
            <div>
                <select id='cartype' name='cartype'>
                  <option class="ques" selected = "selected">奥迪</option>
                </select>
            </div>
            <div>
                <select id='car' name='car'>
              <option class="ques" selected = "selected">A1</option>
                </select>
            </div>
        </h5>   
        <h5 class="sel seldata">
            <span>付款方式：</span>
            <div>
                <select id='payfor' name='payfor'>
                  <option class="ques" selected = "selected">全款购车</option>            
                </select>
            </div>
        </h5> 
                 <h5 class="sel seldata">
            <span>当前销售人员</span>
            <div>
                <select id='salered' name='salered'>
                  <option class="ques" selected = "selected">牛艳兵</option>
                </select>
            </div>
        </h5> -->
		<h5 class="sel seldata">
            <span>销售顾问:</span>
            <div>
                <i></i>
                <select id='saler' name='saler'>
                  					  <option value="1"  >黄旭辉</option>
				 					  <option value="5"  selected>牛艳兵</option>
				                 </select>
            </div>
        </h5>
     
        
         
         
        <a class="dataSub" onclick="a()">提交</a>  
    </div>
	<script src="view/iwocar5/js/jquery-1.11.1.min.js"></script>
	<script src="view/iwocar5/js/sweet-alert.js"></script>
	<script>
	function a(){
		var id=$('#id').val();
		var saler=$('#saler').val();
		$.ajax({
			url:"4S_Saler_AJAX.php",
			data:{act:"editstaff",id:id,saler:saler},
			dataType:'json',
			type:'post',
			success:function(data){
				if(data.msg){
					swal('数据提交成功！');
					 setTimeout("window.history.back(-1)",1000); 
				}else{
					swal('数据提交失败！');
				}
				
			},
		
		async:false
		});
		
	}
	</script>
</body>
</html>